package org.jeecg.modules.product.risk.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.product.risk.entity.TbBaseControlMeasures;
import org.jeecg.modules.product.risk.entity.TbBaseMeasuresTask;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 管控措施信息
 * @Author: jeecg-boot
 * @Date:   2024-03-02
 * @Version: V1.0
 */
public interface ITbBaseControlMeasuresService extends IService<TbBaseControlMeasures> {

	/**
	 * 通过主表id查询子表数据
	 *
	 * @param mainId 主表id
	 * @return List<TbBaseControlMeasures>
	 */
	public List<TbBaseControlMeasures> selectByMainId(String mainId);

	/**
	 * 添加一对多
	 *
	 * @param tbBaseControlMeasures
	 * @param tbBaseMeasuresTaskList
	 */
	public void saveMain(TbBaseControlMeasures tbBaseControlMeasures,List<TbBaseMeasuresTask> tbBaseMeasuresTaskList) ;

	/**
	 * 修改一对多
	 *
	 * @param tbBaseControlMeasures
	 * @param tbBaseMeasuresTaskList
	 */
	public void updateMain(TbBaseControlMeasures tbBaseControlMeasures,List<TbBaseMeasuresTask> tbBaseMeasuresTaskList);

	/**
	 * 删除一对多
	 *
	 * @param id
	 */
	public void delMain (String id);

	/**
	 * 批量删除一对多
	 *
	 * @param idList
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);
}
